
public class ComplexeCarPol implements Complexe
{
	private CoupleCarPol representation;

	public ComplexeCarPol(double x, double y) {
		representation = new CoupleCarPol(x, y);
	}

	public ComplexeCarPol(double rho, Angle theta) {
		representation = new CoupleCarPol(rho, theta);
	}

	@Override
	public double getX() {
		return representation.getX();
	}

	@Override
	public double getY() {
		return representation.getY();
	}

	@Override
	public double getRho() {
		return representation.getRho();
	}

	@Override
	public Angle getTheta() {
		return representation.getTheta();
	}

	@Override
	public String toString() {
		return representation.toString();
	}

	@Override
	public Complexe creer(double x, double y) {
		return new ComplexeCarPol(x, y);
	}

	@Override
	public Complexe creer(double rho, Angle theta) {
		return new ComplexeCarPol(rho, theta);
	}

}
